<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.springframework.web.context.support.*" %>
<%@ page import="com.hqhsc.module.login.domain.User" %>
<%
    User user = (User)request.getSession().getAttribute("user");
%>

<header class="navbar">
<div class="container">
    <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".sidebar-nav.nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <a id="main-menu-toggle" class="hidden-xs open"><i class="fa fa-bars"></i></a>
    <a class="navbar-brand col-lg-2 col-sm-1 col-xs-12" href="#"><span>虎丘婚纱城</span></a>
    <!-- start: Header Menu -->
    <div class="nav-no-collapse header-nav">
        <ul class="nav navbar-nav pull-right">

            <!-- start: User Dropdown -->
            <li class="dropdown">
                <a class="btn account dropdown-toggle" data-toggle="dropdown" href="#">
                    <div class="avatar"></div>
                    <div class="user">
                        <span class="hello">欢迎!</span>
                        <span class="name">${user.user_name}</span>
                    </div>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="/hqhsc/resources/logout.jsp"><i class="fa fa-off"></i> 退出</a></li>
                </ul>
            </li>
            <!-- end: User Dropdown -->
        </ul>
    </div>
    <!-- end: Header Menu -->
</div>
</header>